package com.wc.alorithm_luogu.P5743;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/24 15:28
 * @description https://www.luogu.com.cn/problem/P5743
 * 猴子吃桃
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int sum = 1;

        while (--n > 0) {
            sum = (sum + 1) * 2;
        }

        System.out.println(sum);
    }
}
